<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
    <%@ include file="../template/taglib.jsp" %>
<jsp:include page="../template/header.jsp" />
<jsp:include page="../template/adminmenu.jsp" />
<%-- content template --%>
<jsp:include page="../template/contentheader.jsp" />
<%-- put content here --%>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<fmt:setBundle basename="admin" />
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Edit All </title>
</head>
<body>
<form action="/LeaveApplicationProcessingSystem/AdminPublicHoliday" method="post">
<h1>
			<fmt:message key="label.PublicHoliday" />
			</h1>
			<c:url var="InsLeavetypeurl" scope="page"
				value="/admin/adminPublicHoliday.jsp">
				<c:param name="name" value="" />
				<c:param name="insert" value="true" />
			</c:url>
			<a href="${InsLeavetypeurl}"><fmt:message
					key="label.PublicHoliday.add" /> </a>
			<br />
			<br />
			<table>
				<tr>
					<th><fmt:message key="label.PublicHoliday.ID" /></th>
					<th><fmt:message key="label.PublicHoliday.HolidayDate" /></th>
					<th><fmt:message key="label.PublicHoliday.HolidayName" /></th>
					<th><fmt:message key="label.PublicHoliday.Edit" /></th>
					<th><fmt:message key="label.PublicHoliday.Delete" /></th>
				</tr>
				<c:forEach var="holidays" items="${holidays}">
					<tr>
						<td>${holidays.id}</td>
						<td>${holidays.holidayDate}</td>
						<td>${holidays.holidayName}</td>
						<td><c:url var="Upholidayurl" scope="page"
								value="/admin/adminPublicHoliday.jsp">
								<c:param name="id" value="${holidays.id}" />
								<c:param name="date" value="${holidays.holidayDate}" />
								<c:param name="name" value="${holidays.holidayName}" />
								<c:param name="update" value="true" />
								<c:param name="type" value="update" />
							</c:url> <a href="${Upholidayurl}"> <fmt:message
									key="label.PublicHoliday.Edit" /> </a>
						</td>
						<td><c:url var="Delholidayurl" scope="page"
								value="/AdminPublicHoliday">
								<c:param name="id" value="${holidays.id}" />
								<c:param name="type" value="delete" />
							</c:url> <a href="${Delholidayurl}"> <fmt:message
									key="label.PublicHoliday.Delete" /> </a>
						</td>
					</tr>
				</c:forEach>
			</table>
</form>
</body>
</html>

<%-- end of content template --%>

<jsp:include page="../template/footer.jsp" />